import Services from './service';
import ActionsType from './actionsType';
import { Dispatch } from 'react';


export default {
    testFn: (data: any) => (dispatch: Dispatch<any>) => {
        Services.testServiceFn(data).then(res => { 
            dispatch({
                type: ActionsType.TEST_MIAN,
                data: data
            })
        }).catch(err => { 
            dispatch({
                type: ActionsType.TEST_MIAN,
                data: data
            })
        }
        )
    }
}